﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PageTemplate.Master" AutoEventWireup="true" CodeBehind="Volunteer.aspx.cs" Inherits="RMS.Pages.Volunteer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="BodyContent" runat="server">

    <div id ="volunteerForm" runat="server">
        

        <div id="isLoggedInSection" runat="server">
            <h1>Volunteer Registration</h1>    
            <hr />
            <span class="darkbluetext">Please login or create an account to register for volunteering.</span>
            <br />
            <br />
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnLogin" runat="server" Text="Login" CssClass="myButton" OnClick="btnLogin_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnCreateAccount" runat="server" Text="Create Account" CssClass="myButton" OnClick="btnCreateAccount_Click" />
                    </td>
                </tr>
            </table>
        </div>

        <div id="volunteerFormBody" runat="server">
            <h1>Volunteer Registration</h1>    
            <hr />
            <h3 style="color:rgb(0, 100, 0);">I am interested in helping with: </h3>
            <br />
            
            <table class="volunteerTable">
                <tr> <!-- Table Headings -->
                    <td>
                        <h2>Office Assistance:</h2>
                    </td>
                    <td>
                        <h2>Maintenance:</h2>
                    </td>
                    <td>
                        <h2>Landscaping:</h2>
                    </td>
                </tr>
                <tr> <!-- Blank Row -->
                    <td>
                        <span> &nbsp;</span></td>
                    <td>
                        <span> &nbsp;</span>
                    </td>
                    <td>
                        <span> &nbsp;</span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:CheckBox ID="cbBulkMailing" runat="server" text="Bulk Mailing"/>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbCarpentry" runat="server" text="Carpentry"/>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbBrushRemoval" runat="server" text="Brush Removal"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:CheckBox ID="cbComputerMaintenance" runat="server" text="Computer Maintenance"/>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbElectrical" runat="server" text="Electrical"/>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbFlowerAndPlantCare" runat="server" text="Flower and Plant Care"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:CheckBox ID="cbDataEntry" runat="server" text="Data Entry"/>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbHVAC" runat="server" text="HVAC"/>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbLeafRaking" runat="server" text="Leaf Raking (Spring and Fall)"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:CheckBox ID="cbGeneralOfficeAid" runat="server" text="General Office Aid"/>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbPainting" runat="server" text="Painting"/>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbTreeAndBushPruning" runat="server" text="Tree and Bush Pruning"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:CheckBox ID="cbLibraryAid" runat="server" text="Library Aid"/>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbPlumbing" runat="server" text="Plumbing"/>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbWeeding" runat="server" text="Weeding"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:CheckBox ID="cbWordProcessing" runat="server" text="Word Processing"/>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbRefrigeration" runat="server" text="Refrigeration"/>
                    </td>
                    <td>
                        <span> </span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span> </span>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbRoofingOrGutters" runat="server" text="Roofing or Gutters"/>
                    </td>
                    <td>
                        <span> </span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span> </span>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbRoadRepair" runat="server" text="Road Repair"/>
                    </td>
                    <td>
                        <span> </span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span> </span>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbSmallEngineRepair" runat="server" text="Small Engine Repair"/>
                    </td>
                    <td>
                        <span> </span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span> </span>
                    </td>
                    <td>
                        <asp:CheckBox ID="cbWindowWashing" runat="server" text="Window Washing"/>
                    </td>
                    <td>
                        <span> </span>
                    </td>
                </tr>
            </table>
            <br />
            <asp:Button ID="btnSubmitVolunteerForm" CssClass="myButton" runat="server" Text="Submit" OnClick="btnSubmitVolunteerForm_Click" />
            <br />
        </div>


        <div id="volunteerSubmitMessage" runat="server">
            <h1>Volunteer Registration Successful!</h1>
            <hr />
            Thank you for volunteering!
            <p><br /></p>
            <i><span style="color:rgb(0, 100, 0);"><% GenerateEmail(); %></span></i>
            <p><br /></p>
            
        </div>   

        <div id="volunteerSummary" runat="server">
            <h1> Current Volunteering Selections</h1>
            <hr />
            <!-- Display Volunteer Items -->
            <table class="volunteerTable">
                <tr>
                    <td>
                        <h3 style="color:rgb(0, 100, 0);">Volunteer Type:</h3>
                    </td>
                    <td>
                        <h3 style="color:rgb(0, 100, 0);">Category:</h3>
                    </td>
                </tr>
            </table>
            <br />

            <asp:Repeater ID="Repeater1" ItemType="RMS.Models.VolunteerItem" SelectMethod="GetCurrentVolunteerItems" runat="server">
                <ItemTemplate>
                    <table class="volunteerTable">
                        <tr> 
                            <td>
                                <%# Item.VolunteerItemType %>
                            </td>
                            <td>
                                <i><%# Item.VolunteerItemCategory %></i>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:Repeater>
            <br />
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnClearVolunteerRecord" CssClass="myButton" runat="server" Text="Clear / Resubmit" OnClick="btnClearVolunteerRecord_Click" />
                    </td>
                    <td>

                    </td>
                </tr>

            </table>

        </div>      
        
       
    </div>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SidebarContent" runat="server">
    <span><a href="Donation.aspx">Support Us</a></span>
    <span><a href="Static/Donation.aspx">Donations</a></span>
    <span><a href="Static/Help_Needed.aspx">Help Us</a></span>
    <span><a class="selected" href="Volunteer.aspx">Volunteer</a></span>
</asp:Content>
